<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<%@ include file="/template.jsp" %>
<title>确认使用</title>
<style type="text/css">
	
.weui_label{
	width:7em;
}
</style>
</head>
<body>

	<form action="manageCoupon!ensureUseCoupon.action" method="post">
		<input id="couponId" name="couponId" value="${couponId}" type="hidden">
	
	 	<div class="weui_cells_title">叮叮搭车洗车控制平台</div>
        <div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">种类</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                	
                    <input class="weui_input" type="tel" value="${useCouponInfo.couponName}"/>
                </div>
            </div>
            
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">用户手机号</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="tel" value="${useCouponInfo.tellPhone}"/>
                </div>
            </div>
            
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">有效期</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="tel" value="<s:date name="useCouponInfo.expiredTime" format="yyyy年MM月dd日" />"/>
                </div>
                
            </div>
            
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">当前状态</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                	<s:if test="useCouponInfo.couponStatus == 3">
                		<input class="weui_input" type="tel" value="已使用"/>
                	</s:if>
                	
                	<s:elseif test="useCouponInfo.couponStatus == 1">
                		<input class="weui_input" type="tel" value="未激活"/>
                	</s:elseif>
                	
                	<s:elseif test="useCouponInfo.couponStatus == 2">
                		<input class="weui_input" type="tel" value="已激活"/>
                	</s:elseif>
                	
                	<s:elseif test="useCouponInfo.couponStatus == 4">
                		<input class="weui_input" type="tel" value="禁止使用"/>
                	</s:elseif>
                    
                </div>
            </div>
            
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">车辆型号</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="tel" value="${useCouponInfo.vehicleModel}"/>
                </div>
            </div>
        </div>
        
        <div class="container-fluid reg-module">
	        <div class="row">
				<div class="col-xs-10 col-xs-offset-1"><input class="btn btn-danger st-line-item" type="submit" id="ensureUse" value="确认使用"></input></div>
			</div>
		</div>
		
	</form>
		<!--BEGIN dialog1-->
	    <div class="weui_dialog_confirm" id="tips" style="display: none;">
	        <div class="weui_mask"></div>
	        <div class="weui_dialog">
	            <div class="weui_dialog_hd"><strong class="weui_dialog_title">提示</strong></div>
	            <div class="weui_dialog_bd" id="tipContent"></div>
	            <div class="weui_dialog_ft">
	                <a href="javascript:void(0)" id="okbtn" class="weui_btn_dialog" style="color:red;">确定</a>
	                <a href="javascript:void(0)" class="weui_btn_dialog default" >取消</a>
	                
	            </div>
	        </div>
	    </div>
	    <!--END dialog1-->
		
		<script>
			/* $("#ensureUse").click(function(){
				
				 $("#tipContent").html(data);
				
				 var tipDialog = $("#tips");
           	 
				 tipDialog.show();
				 tipDialog.find('.default').click(function(){
				 	 tipDialog.hide();
				 });
				 
				 $("#okbtn").click(function(){
					tipDialog.hide();
				 });
				
			}); */
		</script>
		
		<script src="js/coupon/managecoupon.js"></script>
</body>
</html>